package com.zp.bean.user;

import javax.xml.bind.annotation.XmlRootElement;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.zp.bean.common.ResultCommonVo;
import com.zp.domain.LoginInfo;

/**
 * define Login java bean for web services return which include LoginInfo Object
 * and token
 * 
 * @author chenlijun08@gmail.com
 * 
 * @version 1.0
 * 
 * @date 2014/2/14
 * 
 */
@XmlRootElement
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ResultLoginVo extends ResultCommonVo {
	private static final long serialVersionUID = 1L;
	private LoginInfo login;
	// token key for user use to identity whether this user is valid
	private String key;

	public LoginInfo getLogin() {
		return login;
	}

	public void setLogin(LoginInfo login) {
		this.login = login;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

}
